import java.nio.charset.StandardCharsets;

public class Card implements Comparable<Card>{
    private String size;
    private String color;

    public Card() {
    }

    public Card(String size, String color) {
        this.size = size;
        this.color = color;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return size + color;
    }

    @Override
    public int compareTo(Card o) {
        String s1 = this.size;
        String s2 = o.size;
        if (s1.compareToIgnoreCase(s2) > 0) {
            return 1;
        } else {
            return -1;
        }
    }
}


